<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.sql.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<%
	String stuId = (String)session.getAttribute("stuId");
	Class.forName("com.mysql.jdbc.Driver").newInstance();
	Connection con = java.sql.DriverManager.getConnection("jdbc:mysql://localhost:3306/classfee", "root", "1234");
	Statement stmt = con.createStatement();
	stmt.executeUpdate("update tb_check set checkSet=-1 where stuId='"+stuId+"'");
	stmt.close();
	con.close();
	out.println("<script>alert('操作成功!');window.location='checkStuInfo1.jsp';</script>");
%>
</body>
</html>